function route(handle, pathname, request, response)
{
	console.log('request url path is ' + pathname);
	if(typeof handle[pathname] == 'function')
	{
		return handle[pathname](pathname, request, response);
	}
	else
	{
		console.log('No request handler found for ' + pathname);
		var requestHandlers = require('./requestHandlers');
		requestHandlers.p404(pathname, request, response);
	}
}
exports.route = route;